/* 
 * Copyright (c) 2022, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.boot.sys.service;

import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cory.boot.sys.entity.SysParam;
import com.cory.boot.sys.mapper.SysParamMapper;

/**
 * @author xiongcong
 * @date 2022-01-13
 */
@Service
public class SysParamService {
    @Autowired
    private SysParamMapper baseMapper;

    public List<SysParam> list(SysParam param) {
        return baseMapper.list(param);
    }
    
    public SysParam getById(Serializable id) {
        return baseMapper.selectById(id);
    }
    
    public boolean updateById(SysParam entity) {
        baseMapper.updateById(entity);
        return true;
    }
    
    public boolean save(SysParam entity) {
        baseMapper.insert(entity);
        return true;
    }
    
    public boolean deleteById(Serializable id) {
        baseMapper.deleteById(id);
        return true;
    }
}
